#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[3] = { 0 };
	for (int n = 0; n < 3; n++)
	{
		scanf("%d", &arr[n]);
	}

	for (int i = 0; i < 3; i++)
	{
		for (int j = 2; j > 0; j--)
		{
			if (arr[j] > arr[j - 1])
			{
				int temp = arr[j];
				arr[j] = arr[j - 1];
				arr[j - 1] = temp;
			}
		}
	}

	for (int k = 0; k < 3; k++)
	{
		printf("%d ", arr[k]);
	}
	return 0;
}